package it.fantaski.fantaskirss;

import android.app.ListActivity;
import android.net.Uri;
import android.os.Bundle;

public class FantaskiRssActivity extends ListActivity {
	    //private static final String FEED_URI = "http://feeds.nytimes.com/nyt/rss/HomePage";
		private static final String FEED_URI = "http://www.fantaski.it/feed/fantaskinews.asp";

	    @Override
	    protected void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);

	        //setContentView(R.layout.rss_feeds_list);
	        setContentView(R.layout.rss_feeds_list);
	        setListAdapter(Adapters.loadCursorAdapter(this, R.xml.rss_feed,
	                "content://xmldocument/?url=" + Uri.encode(FEED_URI)));

	        getListView().setOnItemClickListener(new UrlIntentListener());
	    }
	}